package com.lesso.yjy.sunflower.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Value;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@Data
public class EmployeeDeviceDTO implements Serializable {
    private static final long serialVersionUID = 20250706L;

    private Long id;

    @NotNull(message = "员工ID不能为空")
    private Long employeeId;

    @NotBlank(message = "设备编码不能为空")
    private String deviceCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate authorizationDate;

    @NotNull(message = "授权状态不能为空")
    @Min(value = 1, message = "已授权")
    @Max(value = 2, message = "未授权")
    private Integer authorizationStatus;
}
